home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
hardware
/
adflib
/
adflibppc
/
lib
/
win32
/
adf_nativ.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-06-14
|
1KB
|
44 lines
/* Win32/adf_nativ.h
*
* Win32 specific drive access routines for ADFLib
* Copyright 1999 by Dan Sutherland <dan@chromerhino.demon.co.uk>
*/
#ifndef ADF_NATIV_H
#define ADF_NATIV_H
#include "../adf_str.h"
#define NATIVE_FILE 8001
#ifndef BOOL
#define BOOL int
#endif
#ifndef RETCODE
#define RETCODE long
#endif
struct nativeDevice{
FILE *fd; /* needed by adf_dump.c */
void *hDrv;
};
struct nativeFunctions{
RETCODE (*adfInitDevice)(struct Device*, char*);
RETCODE (*adfNativeReadSector)(struct Device*, long, int, unsigned char*);
RETCODE (*adfNativeWriteSector)(struct Device*, long, int, unsigned char*);
BOOL (*adfIsDevNative)(char*);
RETCODE (*adfReleaseDevice)();
};
void adfInitNativeFct();
RETCODE Win32ReadSector(struct Device *dev, long n, int size, unsigned char* buf);
RETCODE Win32WriteSector(struct Device *dev, long n, int size, unsigned char* buf);
RETCODE Win32InitDevice(struct Device *dev, char* name);
RETCODE Win32ReleaseDevice(struct Device *dev);
BOOL Win32IsDevNative(char*);
#endif /* ndef ADF_NATIV_H */